<template>
	<p>我是商品详情页,商品id是{{goodsid}}</p>
</template>

<script>
	export default{
		created:function(){
			this.goodsid = this.$route.params.id
			
			
			// this.goodsid = this.$route.query.id
			
			
			// this.goodsid = this.$route.params.id
			// this.$route.params.id 获取参数名为id的值
			// console.log('good_id:'+this.$route.params.id)
			
			//query方式获取参数值
			console.log('good_id:'+this.$route.query.id)
		},
		data:function(){
			return {
				goodsid:''
			}
		}
	}
</script>

<style>
</style>
